"use strict";

const Service = require("egg").Service;

class BlogTagService extends Service {
  async destroy(blogId) {
    return await this.ctx.model.BlogTag.destroy({
      where: { blogId },
    });
  }

  async create(blogTag) {
    return await this.ctx.model.BlogTag.create(blogTag);
  }
}

module.exports = BlogTagService;
